﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using Uinside.CreditSystem.DomainModels.Models;

namespace Uinside.CreditSystem.Services
{
    public abstract class BaseService : IDisposable
    {
        protected readonly CreditContext _creditContext;
        protected BaseService(CreditContext dbContext)
        {
            _creditContext = dbContext;
        }

        public void Dispose()
        {
            if (_creditContext != null)
                _creditContext.Dispose();
        }
    }
}
